CFLAGS = -D_REENTRANT
LDFLAGS = 
RMFLAGS = -f

SRCFOLDER = src/
BINFOLER = bin/
INT = main.h traitement.h
REAL = $(INT:.h=.c)
OBJ = $(INT:.h=.o)
EXE = simulateur
EFFACE = clean
RM = rm
ECHO = echo
COMP = gcc
EDL = gcc
LIBS = -lpthread -lrt


$(EXE):$(OBJ)
	$(ECHO) Edl de $(EXE)
	$(EDL) $(LDFLAGS) -o $(EXE) $(OBJ) $(LIBS)

%.o:%.c
	$(ECHO) compil de $<
	$(COMP) $(CCFLAGS) -c $<

$(EFFACE):
	$(RM) $(RMFLAGS) $(EXE) $(OBJ)
